package com.yanqu.road.entity.monopolymarket.fortress;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 边关要塞
 * @Author cwq
 * @Data 2021/10/13 18:34
 */
@FieldTypeAnnotation(tableName = "t_c_monopolymarket_fortress_reward")
public class MonopolyMarketFortressRewardData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(select = true, update = true,desc = "周id，例如 每周一的时间 20211011")
    private int weekId;
    @FieldTypeAnnotation(desc = "联盟名称")
    private String unionName;
    @FieldTypeAnnotation(select = true, update = true,desc = "要塞id")
    private int fortressId;
    @FieldTypeAnnotation(desc = "排名")
    private int rank;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward;
    @FieldTypeAnnotation(desc = "是否领奖")
    private boolean idReceive;

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getWeekId() {
        return weekId;
    }
    public void setWeekId(int weekId) {
        if (this.weekId != weekId) {
            this.weekId = weekId;
            setOp(DataStatus.Update);
        }
    }

    public String getUnionName() {
        return unionName;
    }
    public void setUnionName(String unionName) {
        if (unionName == null){
            return;
        }
        if (this.unionName == null || !this.unionName.equals(unionName)) {
            this.unionName = unionName;
            setOp(DataStatus.Update);
        }
    }

    public int getFortressId() {
        return fortressId;
    }
    public void setFortressId(int fortressId) {
        if (this.fortressId != fortressId) {
            this.fortressId = fortressId;
            setOp(DataStatus.Update);
        }
    }

    public int getRank() {
        return rank;
    }
    public void setRank(int rank) {
        if (this.rank != rank) {
            this.rank = rank;
            setOp(DataStatus.Update);
        }
    }

    public String getReward() {
        return reward;
    }
    public void setReward(String reward) {
        if (reward == null){
            return;
        }
        if (this.reward == null || !this.reward.equals(reward)) {
            this.reward = reward;
            setOp(DataStatus.Update);
        }
    }

    public boolean getIdReceive() {
        return idReceive;
    }
    public void setIdReceive(boolean idReceive) {
        if (this.idReceive != idReceive) {
            this.idReceive = idReceive;
            setOp(DataStatus.Update);
        }
    }
}
